package org.jeecg.modules.wlhy.hyappmessage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: APP消息推送
 * @Author: duanlikao
 * @Date:   2021-06-04
 * @Version: V1.0
 */
@Data
@TableName("hy_app_message")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hy_app_message对象", description="APP消息推送")
public class HyAppMessage implements Serializable {
    private static final long serialVersionUID = 1L;

	/**ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private java.lang.String id;
	/**消息标题*/
	@Excel(name = "消息标题", width = 15)
    @ApiModelProperty(value = "消息标题")
    private java.lang.String title;
	/**消息内容*/
	@Excel(name = "消息内容", width = 15)
    @ApiModelProperty(value = "消息内容")
    private java.lang.String body;
	/**发送方式： 1 司机 2 货主 3 按用户 */
	@Excel(name = "发送方式", width = 15, dicCode = "push_type")
	@Dict(dicCode = "push_type")
    @ApiModelProperty(value = "发送方式")
    private java.lang.Integer pushType;
	/**接收人ID*/
	@Excel(name = "接收人ID", width = 15)
    @ApiModelProperty(value = "接收人ID")
    private java.lang.String cid;
	/**推送时间*/
	@Excel(name = "推送时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "推送时间")
    private java.util.Date sendTime;
	/**推送状态 0未推送 1推送成功 2推送失败 3停止推送 4删除推送*/
	@Excel(name = "推送状态", width = 15, dicCode = "push_status")
	@Dict(dicCode = "push_status")
    @ApiModelProperty(value = "推送状态 ")
    private java.lang.Integer pushStatus;
	/**推送任务ID*/
	@Excel(name = "推送任务ID", width = 15)
    @ApiModelProperty(value = "推送任务ID")
    private java.lang.String taskId;
	/**推送失败原因*/
	@Excel(name = "推送失败原因", width = 15)
    @ApiModelProperty(value = "推送失败原因")
    private java.lang.String result;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
	/**创建人登录名称*/
    @ApiModelProperty(value = "创建人登录名称")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人登录名称*/
    @ApiModelProperty(value = "更新人登录名称")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**删除状态(0-正常,1-已删除)*/
	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
    @TableLogic
    private java.lang.Integer delFlag;
}
